package net.lcheng.service.impl;

import net.lcheng.dao.UserIntegralMapper;
import net.lcheng.model.UserIntegral;
import net.lcheng.model.UserIntegralExample;
import net.lcheng.service.UserIntegralService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by zwr on 2016/7/15 0015.
 */
@Service
public class UserIntegralServiceImpl implements UserIntegralService {
@Resource
private UserIntegralMapper mapper;
    @Override
    public List<UserIntegral> getUserIntegralByUserId(String userId) {
        UserIntegralExample example=new UserIntegralExample();
        example.or().andUserUserIdEqualTo(userId);
        return mapper.selectByExample(example);
    }
}
